package com.g.code.ebookssync.dao;

import java.util.List;

import com.g.code.ebookssync.pojo.EBook;
import com.g.code.ebookssync.pojo.EbookArchive;
import com.g.code.ebookssync.pojo.User;
import com.g.code.ebookssync.pojo.UserConf;
import com.g.code.ebookssync.pojo.UserEbook;

public interface BooksDao  {
    
    public List<EBook> getAllEbook();

    public EBook getEbookById(String bookId);
    
    public List<EbookArchive> getArchivesByBookId(String bookId);
    
    public User getUserById(String userId);
    
    public List<UserConf> getUserConfigs(String userId);

    public List<UserEbook> getUserEbooks(String userId);

    public void addUser(String userId);

    public void addUserConf(UserConf userConf);

    public void addUserEbook(UserEbook ue);
    
    public void delUserEbook(String id);
    

}
